const first = () => (new Promise((resolve, reject) => {
    console.log(3); //? 1
    let p = new Promise((resolve, reject) => {
        console.log(7); //? 2
        setTimeout(() => {
            console.log(5);//? 6
            resolve(6);
            console.log(p)//? 7 {1} 因为promise只变一次状态
        }, 0)
        resolve(1);
    });
    resolve(2);
    p.then((arg) => {
        console.log(arg);//? 4 1 这里因为resolve(1)早于resolve(2)所以这里比下面更快
    });
}));
first().then((arg) => {
    console.log(arg);//? 5 2
});
console.log(4);//? 3
